package com.zhu.server;

import io.vertx.core.AbstractVerticle;

public class EchoServer extends AbstractVerticle {

    @Override
    public void start() throws Exception {
        // response 默认是json类型
        vertx.createHttpServer().requestHandler(ctx -> {
            ctx.response().end("helloworld");

            System.out.println("helloworld");

        }).listen(8080);
    }

}
